package com.jt.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 金帮嘉诚 @date 2021-08-18 星期三 21:02
 * 为了实现解耦 故将控制层和业务层分离
 */
@FeignClient(name = "sca-providerre",
        contextId = "RemoteProviderService",
        fallbackFactory = ProviderFallbackFactory.class)
public interface RemoteProviderService {
    @GetMapping("/provider/echo/{msg}")
    String feignEcho(@PathVariable("msg") String msg);
    @GetMapping("/provider/getLogLevel")
    String day04Echo();
}
